package org.fanximall.erp.product.infrastructure.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.fanximall.erp.common.base.BaseDO;

/**
 * @author :  william
 * @version :  V1.0  created in 2024/4/23
 */
@Getter
@Setter
@ToString
@TableName(value = "product_conf_attribute_items")
public class ProductConfAttributeItemsDO extends BaseDO implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 属性名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 属性解释说明
     */
    @TableField(value = "`desc`")
    private String desc;

    /**
     * 属性类型  dict
     */
    @TableField(value = "attr_type_dict")
    private String attrTypeDict;

    /**
     * 是否必填
     */
    @TableField(value = "required")
    private Integer required;

    /**
     * 输入类型 dict
     */
    @TableField(value = "input_model_dict")
    private String inputModelDict;

    /**
     * 1 待生效 2 生效 3 失效
     */
    @TableField(value = "`state`")
    private Boolean state;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 单位 输入框含有此属性 dict
     */
    @TableField(value = "unit_dict")
    private String unitDict;

    /**
     * 数据格式 dict
     */
    @TableField(value = "data_format_dict")
    private String dataFormatDict;

    /**
     * 最大长度
     */
    @TableField(value = "max_length")
    private Integer maxLength;

    /**
     * 最小长度
     */
    @TableField(value = "min_length")
    private Integer minLength;


    private static final long serialVersionUID = 1L;
}